package com.itheima.domain;

import java.util.List;
import java.util.Map;

/**
 * @Author 王加鑫
 * @Date 2021/07/25 20:45
 * @Since JDK 1.8
 */
public class User {
    private String name;
    private Integer age;
    private Address address;
    private List<Address> addressList;
    private Map<String,Address> addressMap;

    public User() {
    }

    public User(String name, Integer age, Address address, List<Address> addressList, Map<String, Address> addressMap) {
        this.name = name;
        this.age = age;
        this.address = address;
        this.addressList = addressList;
        this.addressMap = addressMap;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }

    public List<Address> getAddressList() {
        return addressList;
    }

    public void setAddressList(List<Address> addressList) {
        this.addressList = addressList;
    }

    public Map<String, Address> getAddressMap() {
        return addressMap;
    }

    public void setAddressMap(Map<String, Address> addressMap) {
        this.addressMap = addressMap;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", address=" + address +
                ", addressList=" + addressList +
                ", addressMap=" + addressMap +
                '}';
    }
}
